<template>
  <div>
    <el-result icon="success" :title="title" :subTitle="message">
      <template slot="extra">
        <el-button type="primary" size="medium" @click="goToList"
          >返回</el-button
        >
      </template>
    </el-result>
  </div>
</template>

<script>
export default {
  name: 'AddSuccess',
  methods: {
    goToList() {
      this.$router.push('/home/goods')
    }
  },
  computed: {
    title() {
      return this.$route.params.title
    },
    message() {
      return this.$route.params.message
    }
  }
}
</script>

<style></style>
